#include <stdio.h>
#include <string.h>

int     main(void) {
        FILE *f;
        char line[256];
	char c1[8],c2[8],c3[8];


        f=fopen("weather.txt","r");
        while(fgets(line,sizeof(line),f)!=NULL) {
               /* if(strncmp,("Temperature",line,strlen("Temperature"))==0){
			printf("MATCHED:'%s'\n",line);
			sscanf(line,"%s %s %s",c1,c2,c3);
			printf("humid = '%s'\n",c2 );		
}else{
			printf("NOT MACHED: '%s'\n",line);
		}
	*/
	if(strncmp("Temperature",line,strlen("Temperature"))==0){
 		printf("T:%s$", line);
	//	sscanf(line,"%s %s %s",c1,c2,c3);
        
	

}	
}

       
        fclose(f);
        return 0;
}


